package com.millstein.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MainClass {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MainConfig.class);
        Calculate calculate = (Calculate) applicationContext.getBean("myCalculate");
        calculate.add(4, 5);
    }
}
